export const tableOption = {
  searchMenuSpan: 6,
  columnBtn: false,
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  column: [
    {
      label: '用户ID',
      prop: 'userId',
      search: true,
      width: 120
    },
    {
      label: '课程ID',
      prop: 'courseId',
      search: true,
      width: 120
    },
    {
      label: '课时ID',
      prop: 'lessonId',
      width: 120
    },
    {
      label: '学习进度(%)',
      prop: 'progress',
      width: 120,
      sortable: true
    },
    {
      label: '完成状态',
      prop: 'isCompleted',
      search: true,
      slot: true,
      type: 'select',
      dicData: [
        {
          label: '未完成',
          value: 0
        },
        {
          label: '已完成',
          value: 1
        }
      ],
      width: 100
    },
    {
      label: '试看状态',
      prop: 'isFreeView',
      search: true,
      slot: true,
      type: 'select',
      dicData: [
        {
          label: '否',
          value: 0
        },
        {
          label: '是',
          value: 1
        }
      ],
      width: 100
    },
    {
      label: '视频位置(秒)',
      prop: 'videoPosition',
      width: 120,
      sortable: true
    },
    {
      label: '学习时长(分)',
      prop: 'studyDuration',
      width: 120,
      sortable: true
    },
    {
      label: '最后学习时间',
      prop: 'lastStudyAt',
      width: 180,
      sortable: true
    },
    {
      label: '完成时间',
      prop: 'completedAt',
      width: 180,
      sortable: true
    },
    {
      label: '创建时间',
      prop: 'createdAt',
      width: 180,
      sortable: true
    }
  ]
}

